package Ptolemaiosz;

public class Door extends Element {

	private Level level;

    public Door() {
        SkeletonLogger.logCall();
		
	SkeletonLogger.logReturn();
    }

	/**
	 * 
	 * @param level
	 */
        
        
	public void setLevel(Level level) {
		SkeletonLogger.logCall();
		
		SkeletonLogger.logReturn();
		
		this.level = level;
	}

	/**
	 * 
	 * @param e
	 */
	public void interaction(Element e) {
		SkeletonLogger.logCall();
		
			level.checkLevelCompleted();
		
		SkeletonLogger.logReturn();
	}
        
        public GraphicalElement getGraphicalElement()
            {
                return ConcreteGraphycalElementCreator.getGraphicalEntity(this);
            }

}